﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BadCardByBatch.aspx.cs"
    Inherits="CardLogistics.Web.MainPage.StaAna.StaAnaCard.BadCardByBatch" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>未售问题卡回收</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/selPage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../../js/jquery.js"></script>
    <script src="../../../js/jquery.tipswindow.2.0.js" type="text/javascript"></script>
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script src="../../../js/tblistjs.js" type="text/javascript"></script>
    <script src="../../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form runat="server" id="f2">
    <div class="rightinfo">
        <ul class="seachform" style="margin-top: 25px; padding-bottom: 20px;">
            <li>
                <label>
                    入库批次号:</label>
                <asp:TextBox ID="txt_batchno" runat="server" CssClass="scinput" Width="100px"></asp:TextBox>
            </li>
            <li>
                <label>
                    合同签订日期</label>
                <asp:TextBox ID="txt_StartDATE" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                    Width="100px"></asp:TextBox>&nbsp;至
                <asp:TextBox ID="txt_EndDATE" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                    Width="100px"></asp:TextBox>
            </li>
            <li>
                <label>
                    采购类型</label>
                <asp:DropDownList ID="ddltypename" class="dfinput" runat="server" Style="width: 100px;">
                </asp:DropDownList>
            </li>
            <li>
                <div style="margin-top: 12px;">
                    <asp:CheckBox ID="chb_ZK" runat="server" Checked="true" /><span style="padding-left: 5px;">制卡坏卡</span>
                    <asp:CheckBox ID="chb_TH" runat="server" Checked="true" /><span style="padding-left: 5px;">退换坏卡</span>
                    <asp:CheckBox ID="chb_WSWT" runat="server" Checked="true" /><span style="padding-left: 5px;">未售问题卡</span>
                </div>
            </li>
            <li>
                <label>
                    &nbsp;</label>
                <asp:Button ID="btn_Search" runat="server" Text="查询" CssClass="scbtn" OnClick="btn_Search_Click" />
            </li>
        </ul>
        <asp:Repeater ID="rptList" runat="Server">
            <HeaderTemplate>
                <table class="tablelist" id="tblist">
                    <thead>
                        <tr>
                            <th>
                                序号
                            </th>
                            <th>
                                合同编号
                            </th>
                            <th>
                                批次号
                            </th>
                            <th>
                                供应商名称
                            </th>
                            <th>
                                坏卡数量
                            </th>
                            <th>
                                入库总数
                            </th>
                            <th>
                                坏卡率
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center" width="70px">
                        <%# Container.ItemIndex+1+(WebPageIndex*WebPageSize-10) %>
                    </td>
                    <td align="center">
                        <%# Eval("conno")%>
                    </td>
                    <td align="center">
                        <%# Eval("batchno")%>
                    </td>
                    <td align="center">
                        <%# Eval("suppliersname")%>
                    </td>
                    <td align="right">
                        <%# Eval("坏卡数量")%>
                    </td>
                    <td align="right">
                        <%# Eval("入库总数")%>
                    </td>
                    <td align="right">
                        <%# decimal.Parse(Eval("坏卡率").ToString()).ToString("0.00%")%>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody></table>
            </FooterTemplate>
        </asp:Repeater>
        <asp:HiddenField ID="hdf_Id" runat="server" />
    </div>
    <script type="text/javascript">
        $('.tablelist tbody tr:odd').addClass('odd');
    </script>
    </form>
</body>
</html>
